#include <iostream>
#include "Renderer.h"

int main(int argc, char* argv[])
{
    spdlog::set_pattern("%^[%X][%l]%$ %v");
    spdlog::set_level(spdlog::level::debug);

    std::string filename;
    if (argc > 1)
        filename = argv[1];
    else
        filename = "../data/bunny.obj";

    {
        RefPtr<Renderer> render = new Renderer;
        render->ReadModel(filename);
        render->Run();
    }

    return 0;
}
